import request from '@/utils/request';

export function doImport(data) {
  return request({
    url: '/comprehensive/knrdtype/doImport',
    method: 'post',
    data
  });
}

// 查询困难类型列表
export function listKnrdtype(query) {
  return request({
    url: '/comprehensive/knrdtype/list',
    method: 'get',
    params: query
  })
}

// 查询困难类型详细
export function getKnrdtype(id) {
  return request({
    url: '/comprehensive/knrdtype/' + id,
    method: 'get'
  })
}

// 新增困难类型
export function addKnrdtype(data) {
  return request({
    url: '/comprehensive/knrdtype/add',
    method: 'post',
    data: data
  })
}

// 修改困难类型
export function updateKnrdtype(data) {
  return request({
    url: '/comprehensive/knrdtype/update',
    method: 'post',
    data: data
  })
}

// 删除困难类型
export function delKnrdtype(id) {
  return request({
    url: '/comprehensive/knrdtype/' + id,
    method: 'post'
  })
}
//根据学号获取困难类型
// 查询困难类型详细
export function queryByStuNo(data) {
  return request({
    url: '/comprehensive/knrdtype/queryByStuNo',
    method: 'post',
    data: data
  })
}